package com.wt.chat.entity;

import java.util.Date;

public class Dialog {
    private Integer id;

    private Integer kefuId;

    private Integer userId;

    private Integer companyId;

    private Integer groupId;

    private Date acceptTime;

    private Date createTime;

    private Date endTime;

    private Boolean inLine;

    private Integer status;

    private Integer whoClose;

	/**
	 * 消息已读标记，传递到页面上，默认是已读，数据库暂无此字段，考虑加到数据库，先放这里，
	 * 这个属性必须要，否则vue识别不了，未读标记不能正确显示
	 */
	private Integer readFlag = 1;

	public Integer getReadFlag() {
		return readFlag;
	}

	public Dialog setReadFlag(Integer readFlag) {
		this.readFlag = readFlag;
		return this;
	}

	public Integer getId() {
		return id;
	}

	public Dialog setId(Integer id) {
		this.id = id;
		return this;
	}

	public Integer getKefuId() {
		return kefuId;
	}

	public Dialog setKefuId(Integer kefuId) {
		this.kefuId = kefuId;
		return this;
	}

	public Integer getUserId() {
		return userId;
	}

	public Dialog setUserId(Integer userId) {
		this.userId = userId;
		return this;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public Dialog setCompanyId(Integer companyId) {
		this.companyId = companyId;
		return this;
	}

	public Integer getGroupId() {
		return groupId;
	}

	public Dialog setGroupId(Integer groupId) {
		this.groupId = groupId;
		return this;
	}

	public Date getAcceptTime() {
		return acceptTime;
	}

	public Dialog setAcceptTime(Date acceptTime) {
		this.acceptTime = acceptTime;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public Dialog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public Date getEndTime() {
		return endTime;
	}

	public Dialog setEndTime(Date endTime) {
		this.endTime = endTime;
		return this;
	}

	public Boolean getInLine() {
		return inLine;
	}

	public Dialog setInLine(Boolean inLine) {
		this.inLine = inLine;
		return this;
	}

	public Integer getStatus() {
		return status;
	}

	public Dialog setStatus(Integer status) {
		this.status = status;
		return this;
	}

	public Integer getWhoClose() {
		return whoClose;
	}

	public Dialog setWhoClose(Integer whoClose) {
		this.whoClose = whoClose;
		return this;
	}

	public enum DialogStatus {
		/**
		 * 打开
		 */
		OPEN(1),
		/**
		 * 关闭
		 */
		CLOSE(0);

		private int value;

		DialogStatus(int value) {
			this.value = value;
		}

		public int getValue() {
			return value;
		}
	}
	public enum WhoClose {
		/**
		 * 客服关闭
		 */
		KEFU(1),
		/**
		 * 用户关闭
		 */
		CUSTOMER(2);

		private int value;

		WhoClose(int value) {
			this.value = value;
		}

		public int getValue() {
			return value;
		}
	}

}